import api from '@/utils/request'

// API 方法

// 根据流程定义Id 获取流程XML 定义文件内容
export function getXmlStrByProcessId(processDefinitionId: any) {
    return api.get(`/WorkFlow/process/getXmlStrByProcessId?processId=${processDefinitionId}`)
}

//根据流程实例Id 获取流程XML 定义文件内容
export function getXmlStrByProcessInstanceId(processInstanceId: any) {
    return api.get(`/WorkFlow/process/getXmlStrByProcessInstanceId?processInstanceId=${processInstanceId}`)
}


export function getHighlighted(processInstanceId: any) {
    return api.get(`/WorkFlow/instance/getActiveNodes?instanceId=${processInstanceId}`)
}


export function getNodeDetails(flowId: any, activityId: any) {
    return api.get(`/WorkFlow/instance/nodeDetail/${flowId}/${activityId}`)
}